package org.mnj07.patterns.singleton;

public class Singleton {
  private static Singleton instance;
  
  private Singleton(){
    //empty
  }
  
  public synchronized static Singleton getInstance(){
    if(instance == null){
      instance = new Singleton();
    }
    return instance;
  }
}
